package zhuhai.tedu.parttimess.repository;

import org.springframework.data.jpa.repository.Query;
import zhuhai.tedu.parttimess.domain.Student;

import java.util.List;

public interface StudentRepository extends BaseRepository<Student,Integer> {

    @Query(value = "select * from student where user_id=?1",nativeQuery = true)
    List<Student> findByUserID(Integer userId);
}
